<?php echo $this->render('/manage/header.phtml');?>
<style>
#title,#keywords,#coverimage{width:600px;}
</style>
<script type="text/javascript" charset="utf-8" src="<?php echo APPLICATION_PUBLIC; ?>/ueditor/editor_config.js"></script>
<script type="text/javascript" charset="utf-8" src="<?php echo APPLICATION_PUBLIC; ?>/ueditor/editor_all.js"></script>
</head>
<body>
<?php
	$authorInfo = Zend_Registry::get('database')->author;
?>
<div id="body-wrapper">
<?php echo $this->render('/manage/sidebar.phtml');?>
<div id="main-content">
    <h2>Edit Author</h2>
    <div class="clear"></div>
    <div class="content-box">
      <div class="content-box-header">
        <h3>Content box</h3>
        <div class="clear"></div>
      </div>
      <div class="content-box-content">
		<form action="<?php echo APPLICATION_URL; ?>/manage/save-author" method="post">
			<table>
				<tr>
					<td>ID</td>
					<td><input style="border: none;" readonly="readonly" type="text" size="18" name="id" value="<?php echo $this->author[$authorInfo->id];?>" /></td>
				</tr>
				<tr>
					<td>Author</td>
					<td><input type="text" size="18" name="author" value="<?php echo $this->author[$authorInfo->author];?>"/></td>
				</tr>
				<tr>
					<td>Userid</td>
					<td><input type="text" size="18" name="userid" value="<?php echo $this->author[$authorInfo->userid];?>"/></td>
				</tr>
				<tr>
					<td colspan="2"><input type="submit" value="Submit" /></td>
				</tr>
			</table>
			
		</form>
      </div>
    </div>
<?php echo $this->render('/manage/footer.phtml');?>
</div>
</div>
</body>
</html>